package cc.higou.service;

import cc.higou.core.pojo.SuperPojo;
import cc.higou.core.tools.PageHelper;
import org.apache.solr.client.solrj.SolrServerException;

import java.io.IOException;
import java.util.List;

/**
 * 说明：
 * solr业务层的接口
 *
 * @author:dongxing
 * @time:--
 */

public interface SolrService {

    /**
     * 从solr库中查询所有的商品信息
     *
     * @param keyword
     * @return
     */
    public PageHelper.Page<SuperPojo> findAllFromSolr(String keyword, String sort, Integer pageNum, Integer pageSize, Long brandId, Integer fa, Integer fb) throws SolrServerException;

    /**
     * 添加商品到solr服务器中
     *
     * @param ids
     * @throws SolrServerException
     * @throws IOException
     */
    public void addProduct(String ids) throws SolrServerException, IOException;
}
